package com.jieshuibao.service;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jieshuibao.mapper.WxOrderMapper;
import com.jieshuibao.model.db.WxOrder;
import com.jieshuibao.wx.po.WxAppPayReq;

@Service
public class WxOrderService {
	@Autowired
	private WxOrderMapper wxOrderMapper;
	
	public void insertWxOrder(WxAppPayReq wxAppPayReq ,String sn,BigDecimal sum,String phone){
	}
	
	public void addWxOrder(WxOrder wxOrder) {
		wxOrderMapper.insertSelective(wxOrder);
	}
	
	public void delWxOrderById(String id) {
		wxOrderMapper.deleteByPrimaryKey(id);
	}
	
	public void updateWxOrder(WxOrder wxOrder) {
		wxOrderMapper.updateByPrimaryKeySelective(wxOrder);
	}
	
	
	public WxOrder getWxOrderById(String id) {
		return wxOrderMapper.selectByPrimaryKey(id);
	}
}
